package com.corgi.encrypt.annotation;

import com.corgi.encrypt.advice.EncryptRequestBodyAdvice;
import com.corgi.encrypt.advice.EncryptResponseBodyAdvice;
import com.corgi.encrypt.properties.EncryptProperties;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @title: EnableEncrypt
 * @description:
 * @author: dengmiao
 * @create: 2019-10-23 14:48
 **/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Import({EncryptProperties.class,
        EncryptResponseBodyAdvice.class,
        EncryptRequestBodyAdvice.class})
public @interface EnableEncrypt {
}
